package org.jeecg.modules.market.service.impl;

import org.jeecg.modules.market.entity.WholesalePurchase;
import org.jeecg.modules.market.mapper.WholesalePurchaseMapper;
import org.jeecg.modules.market.service.IWholesalePurchaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: 批发市场批发情况
 * @Author: jeecg-boot
 * @Date:   2019-08-29
 * @Version: V1.0
 */
@Service
public class WholesalePurchaseServiceImpl extends ServiceImpl<WholesalePurchaseMapper, WholesalePurchase> implements IWholesalePurchaseService {

    @Autowired
    private WholesalePurchaseMapper wholesalePurchaseMapper;

    public List<Map<String,Object>> avgWholesalePrice(String year){
        return wholesalePurchaseMapper.avgWholesalePrice(year);
    }

}
